package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;
import com.itheima.reggie.domain.OrderDetail;

import java.util.Date;
import java.util.List;

public interface OrderService {
    //保存订单
    void save(Order order);

    //最新订单/历史订单
    Page<Order> findByPage(Integer pageNum, Integer pageSize);


    Page<Order> findOrder(Integer pageNum, Integer pageSize, String number, Date beginTime, Date endTime);

}
